package com.platform.module.dao.mapper;

import com.platform.module.dao.config.db.DS;
import com.platform.module.dao.entity.TbUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.platform.module.pojo.UserRecord;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author ZM
 * @since 2025-01-07
 */
public interface TbUserMapper extends BaseMapper<TbUser> {

    @DS("db2")
    @Select("select * from tb_user where user_id = #{userId}")
    UserRecord findUserByUid(Long userId);
}
